package com.gupaoedu.vip.mall.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gupaoedu.vip.mall.goods.model.Brand;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*****
 * 品牌的Mapper接口
 ****/
public interface BrandMapper extends BaseMapper<Brand> {

    /**
     * 品牌加载：根据分类id查询品牌id集合
     * @param id
     * @return
     */
    @Select("select brand_id from category_brand where category_id=#{id}")
    List<Integer> queryBrandIds(Integer id);


}
